using System.ComponentModel.DataAnnotations;

namespace StudyCompanion.Dto.Web;

public class AddUserDto
{
    /// <summary>
    /// 分享用户ID
    /// </summary>
    [Required(ErrorMessage = "分享用户ID必填")]
    public long SuperiorUser { get; set; }
    
    /// <summary>
    ///     昵称
    /// </summary>
    public string NickName { get; set; }

    /// <summary>
    ///     手机号码
    /// </summary>
    [Required(ErrorMessage = "手机号码必填")]
    public string Phone { get; set; }
    
    /// <summary>
    ///     验证码
    /// </summary>
    [Required(ErrorMessage = "验证码必填")]
    public string Code { get; set; }

    /// <summary>
    ///     登录密码
    /// </summary>
    public string Password { get; set; }
}